package com.hifar.sso.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * SSO配置类
 * 
 * @author system
 * @since 1.0.0
 */
@Configuration
public class SSOConfig implements WebMvcConfigurer {
    
    // 暂时注释掉拦截器配置，避免启动时的循环依赖问题
    // @Autowired
    // private SSOAuthInterceptor ssoAuthInterceptor;
    
    // @Override
    // public void addInterceptors(InterceptorRegistry registry) {
    //     registry.addInterceptor(ssoAuthInterceptor)
    //             .addPathPatterns("/sso/**")
    //             .excludePathPatterns(
    //                     "/sso/login",
    //                     "/sso/authorize",
    //                     "/sso/authorize/confirm",
    //                     "/sso/token",
    //                     "/sso/logout",
    //                     "/sso/status"
    //             );
    // }
}
